package com.learn.quartz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description:    java类作用描述
 * @author:         MI
 * @email:          448341911@qq.com
 * @createDate:     2023/10/29 9:52
 * @updateUser:     MI
 * @updateDate:     2023/10/29 9:52
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Data
@TableName("task_config")
public class TaskConfigEntity implements Serializable {

    private static final long serialVersionUID = 3250869107218836515L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    private String taskId;


    private String cron;


    private String className;


    private String description;


    private Integer status;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    private String createBy;




    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    private String updateBy;

    private Integer isDel;
}
